package com.guli.mall.wms.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.guli.common.constant.WareConstant;
import lombok.Data;

/**
 * 
 * 
 * @author 罗俊华
 * @email 1007052116@qq.com
 * @date 2020-09-29 21:37:28
 */
@Data
@TableName("wms_purchase_detail")
public class PurchaseDetailEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 * 
	 */
	@TableId
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 采购单id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long purchaseId;

	/**
	 * 采购商品id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long skuId;

	/**
	 * 采购数量
	 */
	private Integer skuNum;

	/**
	 * 采购金额
	 */
	private BigDecimal skuPrice;

	/**
	 * 仓库id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long wareId;

	/**
	 * 状态[0新建，1已分配，2正在采购，3已完成，4采购失败]
	 */
//	private WareConstant.PurchaseDetailStatusEnum status;
	private Integer status;
}
